import { request } from '@/plugins/request'

// 关注用户
export const addFollow = user => {
  return request({
    method: 'POST',
    url: `/api/profiles/${user}/follow`
  })
}

// 取消关注
export const deleteFollow = user => {
  return request({
    method: 'DELETE',
    url: `/api/profiles/${user}/follow`
  })
}

//获取用户信息
export const getUser = user => {
  return request({
    method: 'GET',
    url: `/api/profiles/${user}`
  })
}